package org.scut.smartgeometry.act.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import org.scut.smartgeometry.R;
import org.scut.smartgeometry.act.HomePageAct;
import org.scut.smartgeometry.view.HandwriteView;

/**
 * Created by Administrator on 13-6-5.
 */
public class PaintFragment extends Fragment {

    private HomePageAct homePageAct;
    private HandwriteView handwriteView;

    public PaintFragment(HomePageAct homePageAct){
        this.homePageAct = homePageAct;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//        return inflater.inflate(R.layout.fragment_paint, container, false);
        handwriteView = new HandwriteView(container.getContext(), homePageAct);
        return handwriteView;
    }

    public HandwriteView getHandwriteView() {
        return handwriteView;
    }

    public void clickMenu(String btnName){
        handwriteView.clickMenu(btnName);
    }

}
